﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class SetNumberofTurns : GameAction
    {
        GameSettings gameSettings;
        int numOfTurns;

        public SetNumberofTurns(GameSettings gamesettings, int numTurns)
        {
            this.gameSettings = gamesettings;
            this.numOfTurns = numTurns;
        }

        public override void doAction()
        {
            if (gameSettings.getGameType() == 1 || gameSettings.getGameType() == 2) //only set turns for territories + quick win
             gameSettings.setTurnLimit(numOfTurns);

        }
    }
}
